
#import "MiscURIWell.h"
#import "MiscURICell.h"

//---------------------------------------------------------------------------------------
	@implementation MiscURIWell
//---------------------------------------------------------------------------------------

	/*" Quick'n'Dirty hack. "*/

//---------------------------------------------------------------------------------------
	- initFrame:(NXRect *)frameRect
//---------------------------------------------------------------------------------------

	{
    [super initFrame:frameRect];
    myCell=[[MiscURICell allocFromZone:[self zone]] init];

    return self;
	}


//-----------------------------------------------------------------------------
	- drawSelf:(const NXRect *)rects :(int)rectCount;
//-----------------------------------------------------------------------------

	{
	[super drawSelf:rects:rectCount];
	[myCell drawSelf:&bounds inView:self];

	return self;
	}


//-----------------------------------------------------------------------------
	- mouseDown:(NXEvent *)theEvent;
//-----------------------------------------------------------------------------

	{
	[myCell trackMouse:theEvent inRect:&bounds ofView:self];
	
	return self;	
	}


//---------------------------------------------------------------------------------------
	- awakeFromNib;
//---------------------------------------------------------------------------------------

	{
	[self takeURIFrom:refObject];
	return self;
	}
	
	
//---------------------------------------------------------------------------------------
	- setRefObject:aControl;
//---------------------------------------------------------------------------------------

	{
	refObject=aControl;
	return self;
	}


//---------------------------------------------------------------------------------------
	- refObject;
//---------------------------------------------------------------------------------------

	{
	return refObject;
	}


//---------------------------------------------------------------------------------------
	- takeURIFrom:sender;
//---------------------------------------------------------------------------------------

	{
	[myCell setURI:[sender stringValue]];
	return self;
	}


//---------------------------------------------------------------------------------------
	- takeStringValueFrom:sender;
//---------------------------------------------------------------------------------------

/*" Same as #{takeStringValueFrom:}. "*/

	{
	return [self takeURIFrom:sender];
	}


//---------------------------------------------------------------------------------------
	@end
//---------------------------------------------------------------------------------------

